﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main2.master" AutoEventWireup="true" CodeFile="feedback.aspx.cs" Inherits="feedback" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="css/detail.css" rel="stylesheet" type="text/css" />
    <link href="css/PersonCenter.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#aFeedBack").click(function () {
            var message = $("#txtaFB").val();
            $.post("doFeedBack.ashx", { "message": message }, function (data) {
                if (data = "yes") {
                    alert("反馈信息成功");
                    var tb = document.getElementById("tbFeedBack");
                    var row1 = tb.insertRow(-1);
                    var col1 = row1.insertCell(-1);
                    var col2 = row1.insertCell(-1);
                    var col3 = row1.insertCell(-1);
                    col1.innerHTML = "<%=currentuser.UName %>";
                    col2.innerHTML = $("#txtaFB").val();
                    col3.innerHTML = new Date().toLocaleDateString();
                    $("#txtaFB").val("");
                } else {
                    alert("反馈信息失败");
                }
            });
        })
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width:500px; height:400px">
<div id="divfeedback" style="margin:0 auto">
<textarea id="txtaFB" style="border:solid 1px #C6C6C6;resize:none; height:60px; width:460px; margin-left:18px"></textarea><br />
<table width="480px"><tr><td align="right">
                <a id="aFeedBack" href="javascript:void(0)"  style="color:#7AA5B9;" >反馈</a>
          </td></tr></table>
</div>

    <table class="tbInfo" width="490px" id="tbFeedBack" style="text-align:center">
        <asp:Repeater ID="rpFeedBack" EnableViewState="true" runat="server">
            <ItemTemplate>
                                
                <tr style="background-color:#f5fafa; height:40px;"> 
                <td width="80px"><%#Eval("User.UName")%></td>
                <td><%#Eval("Message")%></td>
                <td width="100px"><%#Eval("FAddTime", "{0:yyyy-MM-dd}")%></td>
                </tr>
                                
            </ItemTemplate>
            <AlternatingItemTemplate>
                                
                <tr style="background-color:#fff; height:40px;"> 
                <td width="80px"><%#Eval("User.UName")%></td>
                <td><%#Eval("Message")%></td>
                <td width="100px"><%#Eval("FAddTime", "{0:yyyy-MM-dd}")%></td>
                </tr>

            </AlternatingItemTemplate>
        </asp:Repeater>
        </table>
</div>
        <div id="divPage">
  
       
      第 <asp:Label ID="pageNum" runat="server" Text="Label"></asp:Label>
&nbsp;页   
      共<asp:Label ID="pageCount" runat="server" Text="Label"></asp:Label>
&nbsp;页>   
  
        <asp:Button ID="btnpre" runat="server" CssClass="anniu" Text="上一页" onclick="btnpre_Click" 
            />
&nbsp;
       <asp:Button ID="btnnext" runat="server" CssClass="anniu" Text="下一页" onclick="btnnext_Click" 
            />
       <asp:TextBox ID="txtjump" runat="server" Width="59px"></asp:TextBox>
       <asp:Button ID="btnjump" runat="server" CssClass="anniu" 
            Text="跳转" ValidationGroup="group1" Width="54px" 
          onclick="btnjump_Click" />
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ErrorMessage="*" ValidationGroup="group1" ControlToValidate="txtjump" ForeColor="Red"></asp:RequiredFieldValidator>
      <asp:CompareValidator ID="CompareValidator1" runat="server" 
          ValidationGroup="group1"  ErrorMessage="*" ControlToValidate="txtjump" 
          ForeColor="Red" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
  </div>

</asp:Content>

